package com.leadingsoft.pwxk.model;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.OneToMany;

import com.alibaba.fastjson.annotation.JSONField;

import lombok.Getter;
import lombok.Setter;

/**
 * @author: lipan 2018年5月9日
 * @description: ( 地方环保部门依法增加的内容信息 )
 * 
 */
@Entity
@Getter
@Setter
public class ManaLocal extends Basic {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/** 有核发权的地方环境保护主管部门增加的管理内容 */
	@Lob
	@Column(length=1048576)
	private String partcontent;
	/** 改正措施 */
	@Lob
	@Column(length=1048576)
	private String corrective;

	@OneToMany(cascade = CascadeType.ALL)
	@JSONField(name = "NOISE")
	private List<Noise> Noises;

	@OneToMany(cascade = CascadeType.ALL)
	@JSONField(name = "SOLIDLIST")
	private List<Solid> solids;

	@OneToMany(cascade = CascadeType.ALL)
	@JSONField(name = "CORRECTLIST")
	private List<Correct> corrects;

}
